package com.songshuai.webapi.permission.dao;

import com.songshuai.webapi.permission.model.YxHomepageConfig;
import org.apache.ibatis.annotations.Param;

public interface YxHomepageConfigMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(YxHomepageConfig record);

    int insertSelective(YxHomepageConfig record);

    YxHomepageConfig selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(YxHomepageConfig record);

    int updateByPrimaryKey(YxHomepageConfig record);

    int delHomepageConfigById(@Param("roleId") Integer roleId,@Param("appId")Integer appId);

    //根据角色id，appId查询首页配置
    YxHomepageConfig queryHomePageByRoleId(@Param("roleId")Integer roleId,@Param("appId")Integer appId);

}